home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- main()
- {
- struct flags {
- int status;
- int current;
- int prev;
- };
- static struct flags runtime[] = {
- { 0,1,2 },
- { 3,5,6 },
- { 7,8,9 },
- { 10,11,12 }
- };
- printf("%d\n",runtime[0].status);
- printf("%d\n",runtime[1].status);
- printf("%d\n",runtime[2].status);
- printf("%d\n",runtime[3].status);
- /* try printing out the whole flags data structure */
- }
-